-1) { // Or whatever test you may need var mlnumber = $('#iq_listing_carousel').data('mlnumber'); var zipcode = $('#iq_listing_carousel').data('zip_code'); $.getScript('//code.listtrac.com/monitor.ashx?acct=x_100695&nonjq=1', function(){ if (typeof(_LT) != 'undefined' && _LT != null ) { _LT._trackEvent(_eventType.view, mlnumber, zipcode, 'CB Distinctive - Bozeman'); } }); $(event.currentTarget).unbind('ajaxComplete'); } }); if( $('#iq_listing').length > 0 ){ var mlnumber = $('#iq_listing_carousel').data('mlnumber'); var zipcode = $('#iq_listing_carousel').data('zip_code'); $.getScript('//code.listtrac.com/monitor.ashx?acct=x_100695&nonjq=1', function(){ if (typeof(_LT) != 'undefined' && _LT != null ) { _LT._trackEvent(_eventType.view, mlnumber , zipcode,'CB Distinctive - Bozeman'); } }); }; var a = document.createElement("script"); a.type = "text/javascript"; a.src = "https://pages.liveby.com/liveby.js?id=coldwellbankerbozeman"; document.head.appendChild(a); } catch(e){ console.log('Custom Script JS Error:', e.message); } })();